import Layout from '@/views/layout/Layout';

const _import = require('@/router/_import_' + process.env.NODE_ENV);

export default [{
  path: '/packing',
  component: Layout,
  name: '包材管理',
  icon: 'setting',
  authority: 'packing',
  children: [{
    path: 'require',
    icon: 'fa-user',
    component: _import('packing/require/index'),
    name: '包材需求管理',
    authority: 'packingRequire'
  }, {
    path: 'require/add/designStructure',
    icon: 'fa-user',
    component: _import('packing/require/add'),
    name: '包材结构设计申请',
    authority: 'packingRequire:btn_addDesignStructure'
  }, {
    path: 'require/add/designUi',
    icon: 'fa-user',
    component: _import('packing/require/addUi'),
    name: '包材美工设计申请',
    authority: 'packingRequire:btn_addDesignUi'
  }, {
    path: 'require/edit/designStructure',
    icon: 'fa-user',
    component: _import('packing/require/edit'),
    name: '编辑包材结构设计申请',
    authority: 'packingRequire:btn_editDesignStructure'
  }, {
    path: 'require/edit/designUi',
    icon: 'fa-user',
    component: _import('packing/require/editUi'),
    name: '编辑包材美工设计申请',
    authority: 'packingRequire:btn_eidtDesignUi'
  }, {
    path: 'design',
    icon: 'fa-user',
    component: _import('packing/design/index'),
    name: '包材设计管理',
    authority: 'packingDesign'
  }, {
    path: 'design/edit/designStructure',
    icon: 'fa-user',
    component: _import('packing/design/edit'),
    name: '编辑包材结构设计',
    authority: 'packingDesign:btn_editDesignStructure'
  }, {
    path: 'design/edit/designUi',
    icon: 'fa-user',
    component: _import('packing/design/editUi'),
    name: '编辑包材美工设计',
    authority: 'packingDesign:btn_eidtDesignUi'
  }, {
    path: 'serial',
    icon: 'fa-user',
    component: _import('packing/serial/index'),
    name: '唛头/序列号发放',
    authority: 'packingSerial'
  }, {
    path: 'config',
    icon: 'fa-user',
    component: _import('packing/config/index'),
    name: '包材配置管理',
    authority: 'packingConfig'
  }, {
    path: 'confog/model/edition',
    icon: 'fa-user',
    component: _import('packing/model/edition'),
    name: '新增结构版本'
  }, {
    path: 'confog/model/editions',
    icon: 'fa-user',
    component: _import('packing/model/editions'),
    name: '新增结构版本'
  },
  {
    path: 'require/view/designStructure',
    icon: 'fa-user',
    component: _import('packing/require/detail'),
    name: '查看包材结构设计需求',
    authority: 'packingRequire:btn_viewDesignStructure'
  },
  {
    path: 'require/view/designUi',
    icon: 'fa-user',
    component: _import('packing/require/detailUi'),
    name: '查看包材美工设计需求',
    authority: 'packingRequire:btn_viewDesignUi'
  },
  {
    path: 'design/view/designStructure',
    icon: 'fa-user',
    component: _import('packing/design/detail'),
    name: '查看包材结构设计',
    authority: 'packingDesign:btn_viewDesignStructure'
  },
  {
    path: 'design/view/designUi',
    icon: 'fa-user',
    component: _import('packing/design/detailUi'),
    name: '查看包材美工设计',
    authority: 'packingDesign:btn_viewDesignUi'
  }]
}]
